//
//  ZPPromptView.m
//  ZPIOSEducation
//
//  Created by mini1 on 2016/12/20.
//  Copyright © 2016年 mini1. All rights reserved.
//

#import "ZPPromptView.h"

@implementation ZPPromptView

@synthesize messageLab = _message;

+ (ZPPromptView *)showMessage:(NSString *)message
{
    ZPPromptView *view = [super viewFremNib];
    [view show];
    view.xj_top -= 50.;
    view.messageLab.text = [NSString  stringWithFormat:@"%@",message];
    return view;
}


- (void)awakeFromNib
{
    [super awakeFromNib];
    [self performSelector:@selector(cancel) withObject:nil afterDelay:1];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
